var express = require('express');
var router = express.Router();
const controller = require('../controller/messageController')

/* GET home page. */
// 添加 
router.post('/', controller.addMessage)

router.get('/', controller.findMessage);

router.post('/messageImg', function (req, res) {
  res.send({ ok: 1 })
})

router.post('/del', controller.delAll)

module.exports = router;
